package com.atgion.service.controller;


import com.atgion.service.service.UserAddService;
import com.atgion.spzx.model.entity.system.SysUser;
import com.atgion.spzx.model.entity.user.UserAddress;
import com.atgion.util.AuthContextUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/csmk")
@RestController
public class aa {

    @Autowired
    UserAddService userAddressService;

    @GetMapping("/aa")
    public String aa() {
//        SysUser userInfo = AuthContextUtil.getUserInfo();
        UserAddress userAddress = userAddressService.getById(1);
        userAddress.setName("晴11");
        userAddressService.updateById(userAddress);
        return "成功";
    }

}
